import request from '../utils/request.js';

//  获取 随笔数据
export const postEssaysInfo = (page, pageSize) => {
  return request({
    method: 'post',
    url: '/dynamic/queryPage',
    data: { page: page, pageSize: pageSize },
    Headers: { 'Content-Type': 'application/json' },
  });
};
//  随笔评论
export const postEssaysComment = (articleId, content, parentId, toUserId) => {
  return request({
    method: 'post',
    url: '/dynamic/newComment',
  });
};
